<!DOCTYPE html>
<html lang="en" dir="auto">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div{
      border:2px solid #ccc;
      margin:15px;
      padding:15px;
    }
  </style>
</head>
<body>
  <div>1 2 3 4 5 6 7 8</div>
  <div>1 2 3 4 5 6 7 8</div>
  

  <div style="direction: rtl;">1 2 3 4 5 6 7 8</div>
  <div style="text-align:left;direction:rtl;">1 2 3 4 5 6 7 8</div>
  <div style="text-align:right;">1 2 3 4 5 6 7 8</div>
</body>
</html>
